package org.itboys.core.entity.mysql;

import org.itboys.mysql.entity.BaseMySqlEntity;

/**
 * @Author：贾琦磊
 * @Date：2018/8/15
 * @Description：出库单实体类
 */
public class SundayOutStoreOrder extends BaseMySqlEntity{
    public static final String REASON_BUY="用户购买";
    public static final String REASON_OUT="仓库退货";
    public static final Integer TYPE_BACK=2;
    public static final Integer TYPE_IN=1;
    /**
     * 单据id，比如产生出库单的原因是用户订单，则关联该订单id
     */
    private Long orderId;
    /**
     * 编号（U日期序号）
     */
    private String number;


    /**
     * 入货仓库（前置仓id）
     */
    private Long  preStoreId;
    /**
     * 出货仓库（中心仓库）
     */
    private Long  centerStoreId;
    /**
     * 入库类型
     */
    private String reason;

    private Integer type;

    public SundayOutStoreOrder() {
    }

    public SundayOutStoreOrder(Long orderId,String number, Long preStoreId, Long centerStoreId, String reason) {
        this.orderId=orderId;
        this.number = number;
        this.preStoreId = preStoreId;
        this.centerStoreId = centerStoreId;
        this.reason = reason;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Long getPreStoreId() {
        return preStoreId;
    }

    public void setPreStoreId(Long preStoreId) {
        this.preStoreId = preStoreId;
    }

    public Long getCenterStoreId() {
        return centerStoreId;
    }

    public void setCenterStoreId(Long centerStoreId) {
        this.centerStoreId = centerStoreId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("SundayInStoreOrder{");
        sb.append("orderId='").append(orderId).append('\'');
        sb.append(", number='").append(number).append('\'');
        sb.append(", preStoreId=").append(preStoreId);
        sb.append(", centerStoreId=").append(centerStoreId);
        sb.append(", reason=").append(reason);
        sb.append('}');
        return sb.toString();
    }
}
